package cn.com.server.service;

import java.util.List;
import java.util.Map;

import cn.com.server.common.AjaxObject;

/**
 * <p>
 * 通用sql 服务类
 * </p>
 *
 * @author qing
 * @since 2017-11-15
 */

public interface SqlSession{
		//count
		public long selectCount(String sql);
		//String
		public String selectString(String sql);
		//List<Map<String,Object>>
		public List<Map<String, Object>> selectList(String sql);
		//Page
		AjaxObject selectPage(String sql,Integer page,Integer limit);
		//insert
		public int insertSql(String sql);
		//update
		public int updateSql(String sql);
}
